package com.techstar.api.pojo.bus;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.joda.time.DateTime;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 
 * @author EinIce
 * @description 实时客流量
 * @date 2021年7月16日
 *
 */

@Getter
@Setter
@Entity
@ToString
@Table(name = "realtime_traffic")
@org.hibernate.annotations.Table(appliesTo = "realtime_traffic",comment="pbtp-2-实时客流量")
public class RealtimeTraffic {
	@Id
	private String execDate;
	@Column(columnDefinition="varchar(100) COMMENT '当年日客流量最高的日期'")
	private String maxFlowDate;
	@Column(columnDefinition="varchar(100) COMMENT '业务统计时间'")
	@JsonDeserialize(using = com.techstar.common.jackson.RealtimeTrafficDeserializer.class)
	private DateTime createTime;
	@Column(columnDefinition="varchar(100) COMMENT '当日平峰小时客流量'")
	private String peakAvgFlowByHour;
	@Column(columnDefinition="varchar(100) COMMENT '当年日客流量最高的客流量'")
	private String maxFlowByYear;
	@Column(columnDefinition="varchar(100) COMMENT '当年日均客流量'")
	private String avgFlowByYear;
	@Column(columnDefinition="varchar(100) COMMENT '当年日客流量最低的客流量'")
	private String minFlowByYear;
	@Column(columnDefinition="varchar(100) COMMENT '当日累计客流量'")
	private String accFlow;
	@Column(columnDefinition="varchar(100) COMMENT '当日高峰小时客流量'")
	private String plainAvgFlowByHour;
	@Column(columnDefinition="varchar(100) COMMENT '当年日客流量最低的日期'")
	private String minFlowDate;
}
